package com.xc.ezplan.admin.service;

import com.xc.ezplan.admin.entity.AdminLocalStorage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.ezplan.admin.vo.AdminLocalStorageVo;
import com.xc.ezplan.core.base.BaseSearchBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author lixingchen
 * @date 2022/11/21
 * @description 本地存储接口
 */
public interface AdminLocalStorageService extends IService<AdminLocalStorage> {

    void download(AdminLocalStorageVo adminLocalStorageVo, HttpServletResponse response) throws IOException;

    void create(String name, MultipartFile file);

    void deleteAll(List<Long> ids);

    void updateFile(AdminLocalStorageVo adminLocalStorageVo);

    Object pageQueryFile(BaseSearchBody<AdminLocalStorage> baseSearchBody);
}
